<template>
    <div class="student-detail">
      <el-form :model="student">
        <el-form-item label="姓名">
          <el-input v-model="student.name" disabled></el-input>
        </el-form-item>
        <el-form-item label="详细成绩">
          <el-table :data="student.scores" style="width: 100%">
            <el-table-column prop="subject" label="科目"></el-table-column>
            <el-table-column prop="score" label="成绩"></el-table-column>
          </el-table>
        </el-form-item>
      </el-form>
    </div>
  </template>
  
  <script setup>
  import { ref } from 'vue';
  
  const student = ref({
    name: '张三',
    scores: [
      { subject: '数学', score: 95 },
      { subject: '语文', score: 88 },
      // 其他科目成绩
    ]
  });
  </script>
  
  <style scoped>
  .student-detail {
    padding: 20px;
  }
  </style>
  